package StudyCode.summary.mycollection;

import java.util.Collections;
import java.util.HashSet;
import java.util.Set;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class CreateASetFromAnArray {
	public static <T> Set<T> asSet(T... array) {
		Set<T> result = new HashSet<T>();
		Collections.addAll(result, array);
		return result;
	}
}
